package day03;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class DemoForward extends HttpServlet{
	
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse response) throws ServletException, IOException {
System.out.println(req);
		
		System.out.println(req.getParameter("name"));
		
		req.getRequestDispatcher("/request").forward(req, response);
	}
	
}
